Holds all the information needed of a sampler used during rendering. More...
Public Member Functions | |
Sampler () | |
virtual | ~Sampler () |
virtual FILTER | getFiltering () const =0 |
virtual TEXTURE_ADDRESS_MODE | getAddressModeU () const =0 |
virtual TEXTURE_ADDRESS_MODE | getAddressModeV () const =0 |
virtual TEXTURE_ADDRESS_MODE | getAddressModeW () const =0 |
virtual COMPARISON_FUNC | getComparisonFunc () const =0 |
virtual float | getMipBias () const =0 |
virtual unsigned int | getMaxAnisotropy () const =0 |
virtual float | getMinLodLevel () const =0 |
virtual float | getMaxLodLevel () const =0 |
virtual float | getBorderColorR () const =0 |
virtual float | getBorderColorG () const =0 |
virtual float | getBorderColorB () const =0 |
virtual float | getBorderColorA () const =0 |
const char * | getFilteringAsString () const |
const char * | getAddressModeUAsString () const |
const char * | getAddressModeVAsString () const |
const char * | getAddressModeWAsString () const |
const char * | getComparisonFuncAsString () const |
virtual void | setBorderColors (float r, float g, float b, float a)=0 |
virtual void | setBorderColorR (float value)=0 |
virtual void | setBorderColorG (float value)=0 |
virtual void | setBorderColorB (float value)=0 |
virtual void | setBorderColorA (float value)=0 |
virtual void | setLodLevels (float min, float max)=0 |
virtual void | setMaxAnisotropy (unsigned int value)=0 |
virtual void | setMipMapBias (float value)=0 |
virtual void | setFilterMethod (FILTER value)=0 |
virtual void | setAddressModeU (TEXTURE_ADDRESS_MODE value)=0 |
virtual void | setAddressModeV (TEXTURE_ADDRESS_MODE value)=0 |
virtual void | setAddressModeW (TEXTURE_ADDRESS_MODE value)=0 |
virtual void | setComparisonFunc (COMPARISON_FUNC value)=0 |
virtual void | resetToDefault ()=0 |
void | setFilterMethodFromString (const std::string_view &value) |
void | setAddressModeUFromString (const std::string_view &value) |
void | setAddressModeVFromString (const std::string_view &value) |
void | setAddressModeWFromString (const std::string_view &value) |
void | setComparisonFuncFromString (const std::string_view &value) |
virtual void | exportClassToTree (nkExport::Node *rootNode) override |
virtual void | importClassFromTree (nkExport::Node *rootNode) override |
![]() | |
Resource () | |
Resource (const char *path) | |
virtual | ~Resource () |
virtual bool | load ()=0 |
virtual void | unload ()=0 |
bool | isReadyForRendering () const |
bool | isUnloaded () const |
RESOURCE_LOAD_STATE | getLoadState () const |
std::string_view | getResourcePath () const |
RESOURCE_TYPE | getResourceTypeName () const |
std::string_view | getResourceName () const |
bool | getHidden () const |
virtual void | setResourcePath (const std::string_view &path) |
void | setResourceName (const std::string_view &name) |
void | setHidden (bool value) |
![]() | |
Exportable () | |
virtual | ~Exportable () |
Holds all the information needed of a sampler used during rendering.
nkGraphics::Sampler::Sampler | ( | ) |
Constructor. See SamplerManager::createOrRetrieve().
|
virtual |
Destructor. See SamplerManager::erase().
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
const char* nkGraphics::Sampler::getFilteringAsString | ( | ) | const |
const char* nkGraphics::Sampler::getAddressModeUAsString | ( | ) | const |
const char* nkGraphics::Sampler::getAddressModeVAsString | ( | ) | const |
const char* nkGraphics::Sampler::getAddressModeWAsString | ( | ) | const |
const char* nkGraphics::Sampler::getComparisonFuncAsString | ( | ) | const |
|
pure virtual |
Sets the border color to use. Border color is used, depending on the addressing mode, when the uvw coordinates go out of [0.0, 1.0].
r | The red component to use, between [0.0, 1.0]. |
g | The green component to use, between [0.0, 1.0]. |
b | The blue component to use, between [0.0, 1.0]. |
a | The alpha component to use, between [0.0, 1.0]. |
|
pure virtual |
Individual setter for the border color.
value | The red component value to use, between [0.0, 1.0]. |
|
pure virtual |
Individual setter for the border color.
value | The green component value to use, between [0.0, 1.0]. |
|
pure virtual |
Individual setter for the border color.
value | The blue component value to use, between [0.0, 1.0]. |
|
pure virtual |
Individual setter for the border color.
value | The alpha component value to use, between [0.0, 1.0]. |
|
pure virtual |
Sets the LOD levels to use.
min | The minimal LOD level to use. |
max | The maximal LOD level to use. |
|
pure virtual |
Sets the maximal anisotropy level to use.
value | The maximal anisotropy level to use. |
|
pure virtual |
Sets the mip bias.
value | The bias to use. |
|
pure virtual |
Sets the filter method.
value | The filtering method to use. |
|
pure virtual |
Sets the address mode.
value | The addres mode to use over the u axis. |
|
pure virtual |
Sets the address mode.
value | The addres mode to use over the v axis. |
|
pure virtual |
Sets the address mode.
value | The addres mode to use over the w axis. |
|
pure virtual |
Sets the comparison function.
value | The comparison function to use. |
|
pure virtual |
Resets the sampler to its default configuration.
void nkGraphics::Sampler::setFilterMethodFromString | ( | const std::string_view & | value | ) |
Sets the filtering method, from a string.
value | The filtering method to use. Will be translated through StructToString. |
void nkGraphics::Sampler::setAddressModeUFromString | ( | const std::string_view & | value | ) |
Sets the address mode on axis u from a string.
value | The address mode to use. Will be translated through StructToString. |
void nkGraphics::Sampler::setAddressModeVFromString | ( | const std::string_view & | value | ) |
Sets the address mode on axis v from a string.
value | The address mode to use. Will be translated through StructToString. |
void nkGraphics::Sampler::setAddressModeWFromString | ( | const std::string_view & | value | ) |
Sets the address mode on axis w from a string.
value | The address mode to use. Will be translated through StructToString. |
void nkGraphics::Sampler::setComparisonFuncFromString | ( | const std::string_view & | value | ) |
Sets the comparison function from a string.
value | The comparison function to use. Will be translated through StructToString. |
|
overridevirtual |
Basic exporting capabilities.
rootNode | The tree to export to. |
Implements nkExport::Exportable.
|
overridevirtual |
Basic importing capabilities.
rootNode | The tree to import from. |
Implements nkExport::Exportable.